﻿using CommunityToolkit.Mvvm.ComponentModel;
using System.Collections.ObjectModel;
using WpfMvvmTemplate.MD.Models.EntityModels;

namespace WpfMvvmTemplate.MD.Models.BindingModels
{
    public partial class MainWindowModel : ObservableObject
    {
        [ObservableProperty]
        public ObservableCollection<MenuBar> menuBarColl;

        public MainWindowModel()
        {
            MenuBarColl = new()
            {
                new MenuBar(){ Title="主页",Icon="HomeHeart",NameSpace="HomeView"},
                new MenuBar(){ Title="ViewA",Icon="Airplane",NameSpace="ViewA"},
                new MenuBar(){ Title="ViewB",Icon="CardAccountDetailsStar",NameSpace="ViewB"},
            };
        }
    }
}